package methodDemo;

/**
 * @author: snail_mount
 * @date: 20/1/20 2:03
 * @description: 需求2：定义一个方法用于打印两个int整数中的较大数，数据来自于方法参数
 */
public class Parameter02 {
    public static void main(String[] args) {
        int a = 10;
        int b = 40;
        int max = isMaximum(a, b);
        System.out.println(max);
    }

    private static int isMaximum(int a, int b) {

        if (a > b) {
            return a;
        } else {
            return b;
        }
    }
}
